﻿<controls:ChildWindow x:Class="CARE.Views.NewEdge"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="300" 
           Title="Set properties of created disease edge">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Text="Create new node with selected color."  Foreground="Black" Margin="5,5,5,20"/>

        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="150" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <TextBlock Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" Text="Enter probability for newly created edge from 0-1:" TextWrapping="Wrap" Foreground="Black"/>
            <TextBox Grid.Column="1" Grid.Row="0" Name="Name" Height="29"  TextWrapping="Wrap">
            </TextBox>
            <TextBlock Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" Text="Type minimum time:"  TextWrapping="Wrap" Foreground="Black"/>
            <TextBox Grid.Column="1" Grid.Row="1" Name="minTime" Height="29"  TextWrapping="Wrap">
            </TextBox>
            <TextBlock Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" Text="Type maximum time:" TextWrapping="Wrap" Foreground="Black"/>
            <TextBox Grid.Column="1" Grid.Row="2" Name="maxTime" Height="29"   TextWrapping="Wrap">
            </TextBox>
            <TextBlock Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" Text="Condition:" TextWrapping="Wrap" Foreground="Black"/>
            <TextBox Grid.Column="1" Grid.Row="3" Name="condition" Height="29" TextWrapping="Wrap">
            </TextBox>
        </Grid>
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="2" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="2" />
    </Grid>
</controls:ChildWindow>